package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface OrderMapper {

    /**
     * 根据订单id查询订单
     *
     * @return
     */
    @Select("select * from tb_order where id=#{id}")
    Order findOrderById(Long id);
}
